package com.crayfish.quduo.ui.activity;

import android.support.v7.widget.Toolbar;
import android.widget.TextView;

import com.crayfish.quduo.R;
import com.crayfish.quduo.base.BaseActivity;
import com.crayfish.quduo.commom.Params;

import butterknife.BindView;

/**
 * 作者：crayfish(徐杰)
 * 描述：
 * Created by crayfish on 2017/3/30.
 */
public class NewsDetailsActivity extends BaseActivity{

    @BindView(R.id.toolbar)
    Toolbar toolbar;
    @BindView(R.id.txt_content)
    TextView txt_content;

    private String content;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_new_details;
    }

    @Override
    protected void initEventAndData() {
        setSupportActionBar(toolbar);
        getSupportActionBar().setDisplayHomeAsUpEnabled(true);
        content = getIntent().getStringExtra(Params.CONTENT);
        txt_content.setText(content);
    }
}
